package com.lsa.the6046j.l7;

import java.util.Random;

import com.lsa.helpers.Utils;

public class C {
	public static void main(String[] args) {
//		for (int i = 0; i < 100; i++) {
//			int n = Utils.random(25, 1000);
//			if (n % 2 == 0) {
//				System.out.println(n % 32);
//			}
//		}
		
		int n = 47;
		int d = 16;
//		System.out.println(String.format("%s and %s\n%s\n%s", Utils.toBinaryString(n), Utils.toBinaryString(d),Utils.toBinaryString(n / d), Utils.toBinaryString(n % d)));
		
		int n1 = Utils.fromBinary("101");
		int n2 = Utils.fromBinary("11");
		
//		System.out.println(String.format("n1=%s n2=%s n1*n2=%s, n1=%s n2=%s n1*n2=%s", n1, n2, n1*n2,  Utils.toBinaryString(n1),  Utils.toBinaryString(n2),  Utils.toBinaryString(n1*n2)));
		
//		System.out.println((-8 % 3));
		
		Random r = new Random(314);
		for (int i = 0; i < 10; i++) {
			System.out.println(r.nextInt());
		}
//		int nn = 1 << 23;
		int nn = 2 << 10;
//		System.out.println(Utils.toBinaryString(nn).replaceAll("^0+", "") + " " + (Math.log(nn) / Math.log(2)));
//		System.out.println();
	}
}
